import request from '@/utils/request'

// 查询专科专业信息列表
export function listVocationalMajor(query) {
  return request({
    url: '/baoming/vocationalMajor/list',
    method: 'get',
    params: query
  })
}

// 查询专科专业信息详细
export function getVocationalMajor(id) {
  return request({
    url: '/baoming/vocationalMajor/' + id,
    method: 'get'
  })
}

// 新增专科专业信息
export function addVocationalMajor(data) {
  return request({
    url: '/baoming/vocationalMajor',
    method: 'post',
    data: data
  })
}

// 修改专科专业信息
export function updateVocationalMajor(data) {
  return request({
    url: '/baoming/vocationalMajor',
    method: 'put',
    data: data
  })
}

// 删除专科专业信息
export function delVocationalMajor(id) {
  return request({
    url: '/baoming/vocationalMajor/' + id,
    method: 'delete'
  })
}
